Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Thangalin via ntg-context
, which I'll provide in a separate thread. Here's the code: % SOF \pushoverloadmode \unprotect \permanent\tolerant\protected\def\includesvgfile[#1]#*[#2]% {\hbox\bgroup % no \dontleavehmode \getdummyparameters[\c!offset=\zeropoint,#2]% \clf_includesvgfile{#1}\dimexpr\dummyparameter\c

Re: [NTG-context] SVG text alignment issue

2022-06-29 Thread Hans Hagen via ntg-context
\pushoverloadmode \unprotect \permanent\tolerant\protected\def\includesvgfile[#1]#*[#2]% {\hbox\bgroup % no \dontleavehmode \getdummyparameters[\c!offset=\zeropoint,#2]% \clf_includesvgfile{#1}\dimexpr\dummyparameter\c!offset\relax \egroup} \permanent\tolerant\protected\def\includesvgbuffer[#

[NTG-context] SVG images inside XML setups

2021-03-08 Thread Thangalin
rcle.svg", to create a valid, external SVG file. Copy "circle.svg" to a file named "diagram.svg" to create a second valid, external SVG file. Run: context main.tex Expected All the SVG images appear. Actual Figures 1, 2, and 4 show only the following text: \includ

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-18 Thread Hans Hagen
PDF-viewer-specific, I'm using Chromium as the PDF viewer). I tried doing this in two different ways: using includesvgfile with the offset option, and using startMPcode with setbounds in the MetaFun code. In both cases I just get blank space instead of the cut-off content How can I fix this? Relate

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
re and include a link. This is a combined TeX file containing two different ways I took to try to accomplish the same thing: \starttext {\switchtobodyfont[2pt] {\framed[offset=overlay]{\includesvgfile[../hammingCoderStopwatch-hammingCoder-gcc-RowsSparse-1023-1013.svg][offset

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Aditya Mahajan
m using Chromium as the PDF viewer). Can you check with a desktop pdf viewer as well. > I tried doing this in two different ways: using includesvgfile with > the offset option, and using startMPcode with setbounds in the MetaFun > code. In both cases I just get blank space instead of th

[NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Neven Sajko
iewer). I tried doing this in two different ways: using includesvgfile with the offset option, and using startMPcode with setbounds in the MetaFun code. In both cases I just get blank space instead of the cut-off content How can I fix this? Related question: is it possible to get the MetaPost co

Re: [NTG-context] Label in externalfigures

2020-02-14 Thread Jan-Erik Hägglöf
ncluding label stuffwhat you can also try (with lmtx) is this (no real interface yet):\starttext\hbox\bgroup  \ctxlua{metapost.startsvghashing()}%  \includesvgfile[labels-004.svg]%  \ctxlua{metapost.stopsvghashing()}%\egroup\stoptextwhich should turn your labels into tex, so you can typeset them as tex (so $

Re: [NTG-context] Label in externalfigures

2020-02-13 Thread Jan-Erik Hägglöf
investigate the details manual tip you provided, thanks a lot. > you might want to peek into the luametafun manual as svg is discussed there, > including label stuff > > what you can also try (with lmtx) is this (no real interface yet): > > \starttext > > \hbox\bgroup &

Re: [NTG-context] Label in externalfigures

2020-02-12 Thread Hans Hagen
there, including label stuff what you can also try (with lmtx) is this (no real interface yet): \starttext \hbox\bgroup \ctxlua{metapost.startsvghashing()}% \includesvgfile[labels-004.svg]% \ctxlua{metapost.stopsvghashing()}% \egroup \stoptext which should turn your labels into tex, so you can